<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>SOP Admin</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8"/>
    <link rel="stylesheet" href="../../assets/css/font.css">
    <link rel="stylesheet" href="../../assets/css/xadmin.css">
</head>
<body>
<div class="x-nav">
    <span class="layui-breadcrumb">
        <a href="../welcome.html">首页</a>
        <a><cite>服务管理</cite></a>
        <a><cite>路由管理</cite></a>
    </span>
    <a class="layui-btn layui-btn-small layui-btn-normal" style="line-height:1.6em;margin-top:4px;float:right"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>
<div class="x-body">
    <div class="layui-row">

    </div>
    <div class="layui-row">
        <div class="layui-col-md2">
            <ul id="leftTree"></ul>
        </div>
        <div id="optTip" class="layui-col-md2" style="margin-top: 20px;">
            <i class="layui-icon layui-icon-return"></i>点击树节点查看
        </div>
        <div id="rightPart" class="layui-col-md10" style="display: none;">
            <div class="layui-row">
                <form class="layui-form layui-col-md12 x-so" action="" lay-filter="searchFrm">
                    路由名称：
                    <input name="id" class="layui-input" style="width: 200px;" placeholder="输入接口名或版本号">
                    <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="searchFilter">
                        <i class="layui-icon layui-icon-search"></i>搜索
                    </button>
                </form>
            </div>

            <table class="layui-hide" id="routeTable" lay-filter="routeTableFilter"></table>
            <script type="text/html" id="toolbar">
                <div class="layui-btn-container">
                    <button class="layui-btn layui-btn-ms layui-btn-normal" lay-event="add">
                        <i class="layui-icon layui-icon-add-1"></i>添加路由
                    </button>
                </div>
            </script>
        </div>
    </div>


</div>

<div id="addWin" style="display: none;padding: 20px;">
    <form id="addForm" class="layui-form" action="" lay-filter="addWinFilter">
        <input type="hidden" name="serviceId" />
        <input type="hidden" name="profile" />
        <div class="layui-form-item">
            <label class="layui-form-label">id</label>
            <div class="layui-input-block">
                <input type="text" name="id" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">uri</label>
            <div class="layui-input-block">
                <input type="text" name="uri" lay-verify="required" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">path</label>
            <div class="layui-input-block">
                <input type="text" name="path" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">合并结果</label>
            <div class="layui-input-block">
                <input type="radio" name="mergeResult" value="1" title="合并">
                <input type="radio" name="mergeResult" value="0" title="不合并">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">忽略验证</label>
            <div class="layui-input-block">
                <input type="radio" name="ignoreValidate" value="1" title="是">
                <input type="radio" name="ignoreValidate" value="0" title="否">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="启用">
                <input type="radio" name="status" value="2" title="<span class='x-red'>禁用</span>">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="addWinSubmitFilter">保存</button>
                <button type="button" class="layui-btn layui-btn-primary" onclick="layer.closeAll()">取消</button>
            </div>
        </div>
    </form>
</div>

<div id="updateWin" style="display: none;padding: 20px;">
    <form id="updateForm" class="layui-form" action="" lay-filter="updateWinFilter">
        <input type="hidden" name="serviceId" />
        <input type="hidden" name="profile" />
        <div class="layui-form-item">
            <label class="layui-form-label">id</label>
            <div class="layui-input-block">
                <input type="text" name="id" readonly="readonly" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">uri</label>
            <div class="layui-input-block">
                <input type="text" name="uri" lay-verify="required" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">path</label>
            <div class="layui-input-block">
                <input type="text" name="path" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">合并结果</label>
            <div class="layui-input-block">
                <input type="radio" name="mergeResult" value="1" title="合并">
                <input type="radio" name="mergeResult" value="0" title="不合并">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">忽略验证</label>
            <div class="layui-input-block">
                <input type="radio" name="ignoreValidate" value="1" title="是">
                <input type="radio" name="ignoreValidate" value="0" title="否">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="启用">
                <input type="radio" name="status" value="2" title="<span class='x-red'>禁用</span>">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="updateWinSubmitFilter">保存</button>
                <button type="button" class="layui-btn layui-btn-primary" onclick="layer.closeAll()">取消</button>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="../../assets/js/lib.js"></script>
<script type="text/javascript" src="routeManager.js"></script>
</body>
</html>